//
//  GameController.cpp
//  match2
//
//  Created by Tri Vo on 7/8/13.
//
//

#include "GameController.h"
using namespace cocos2d;

void GameController::pushScene(CCScene *scene) {
    CCDirector::sharedDirector()->replaceScene(CCTransitionSlideInR::create(0.4f, scene));
}

void GameController::popScene(CCScene *scene) {
    CCDirector::sharedDirector()->replaceScene(CCTransitionSlideInL::create(0.4f, scene));
}

char *convertStringToChar(char* str) {
    char **retStr = &str;
    return *retStr;
}

char* GameController::getFontNameForTitle() {
    return convertStringToChar("Arial");
}

char* GameController::getFontNameForMenu() {
    return convertStringToChar("Arial");
}
int GameController::getFontSizeForTitle() {
    return 28;
}

int GameController::getFontSizeForMenu() {
    return 26;
}

CCSize GameController::getWinSize() {
    return CCDirector::sharedDirector()->getWinSize();
}

CCSprite* GameController::createSpriteWithFileName(char* psFileName) {
    return CCSprite::create(psFileName);
}

char* GameController::spriteListFile() {
    return "sprites.plist";
}

char* GameController::spritePNGFile() {
    return "sprites.png";
}
